// syncfusion控件的本地化(汉化)
import { setCulture, L10n, loadCldr } from '@syncfusion/ej2-base';
import { default as numberingSystems } from '../../../src/cldr-data/supplemental/numberingSystems.json';
import { default as gregorian } from '../../../src/cldr-data/main/zh/ca-gregorian.json';
import { default as numbers } from '../../../src/cldr-data/main/zh/numbers.json';
import { default as timeZoneNames } from '../../../src/cldr-data/main/zh/timeZoneNames.json';
import { default as weekData } from '../../../src/cldr-data/supplemental/weekData.json'; // To load the culture based first day of week
loadCldr(numberingSystems, gregorian, numbers, timeZoneNames, weekData);

setCulture('zh');

L10n.load({
  zh: {
    //日期
    datepicker: {
      placeholder: '请选择',
      today: "今天"
    },
    //分页
    pager: {
      currentPageInfo: '第{0}页/共{1}页',
      totalItemsInfo: '(共{0}条)',
      firstPageTooltip: '第一页',
      lastPageTooltip: '最后一页',
      nextPageTooltip: '下一页',
      previousPageTooltip: '转到上一页',
      nextPagerTooltip: '下一页',
      previousPagerTooltip: '上一页',
    }
  }
});
